package com.wicket.okrbff.web.contorller;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrbff.biz.service.EvaWorkExecutionService;
import com.wicket.okrbff.biz.service.dto.req.*;
import com.wicket.okrbff.biz.service.dto.res.*;
import com.wicket.okrbff.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.wicket.okrapp.integration.FwAppEvaWorkExecutionClient;
import com.wicket.okrapp.integration.dto.BatchAddEvaTepCyclePlanRespDto;
import com.wicket.okrapp.integration.dto.BatchAddEvaTepCyclePlanReqDto;
import com.wicket.okrbff.common.exception.Assert;
import com.wicket.okrapp.integration.FwAppOffStateClient;
import com.wicket.okrapp.integration.dto.RefreshEvaThemeCurrentBstepRespDto;
import com.wicket.okrapp.integration.dto.RefreshEvaThemeCurrentBstepReqDto;

/**
 * @author ：
 * @date ：
 * 
 *
 * @version 1.0
 */
@Api(value = "EvaWorkExecution", tags = { "EvaWorkExecution" })
@RestController
// @RequestMapping("/oms/evaWorkExecution/")
public class EvaWorkExecutionController {

  @Autowired
  EvaWorkExecutionService evaWorkExecutionService;
/**
   * B3-3新增评价模板安排周期相关(管理)
   * gen by moon at 10/19/2022, 8:59:21 PM
   */
    @PostMapping("/oms/mgt/evaWorkExecution/addEvaTepPlanCycle")
    @ApiOperation(value = "B3-3新增评价模板安排周期相关(管理)", response = OkrResult.class)
    public OkrResult<BffAddEvaTepPlanCycleRespDto> addEvaTepPlanCycle(@RequestBody(required=false) @Validated BffAddEvaTepPlanCycleReqDto reqDTO){
        return OkrResult.success(evaWorkExecutionService.addEvaTepPlanCycle(reqDTO));
    }
}
